package com.bishe.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 消息
 * @date 2022/03/02 40:11:43
 */
@Data
public class Message implements Serializable {


    //主键id
    @ApiModelProperty("主键")
    private String id;


    //业务id
    @ApiModelProperty("业务id")
    private String dataId;


    //消息内容
    @ApiModelProperty("消息内容")
    private String content;

    //提醒时间
    @ApiModelProperty("提醒时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date messageTime;


    //创建时间
    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    //是否确认
    @ApiModelProperty("是否确认")
    private Integer isCheck;

}
